package com.atguigu.gulimall.cart.demo;

import org.springframework.beans.factory.ObjectFactory;

import java.util.HashMap;
import java.util.Map;

public class singtionObject {
    public Map<String, ObjectFactory<?>> objectFactoryMap = new HashMap<>();

    public void addObject(String beanName,ObjectFactory<?> singletonFactory){
        objectFactoryMap.put(beanName,singletonFactory);
    }

    public Object getEarlyBeanReference(String beanName,Object bean){

        return bean;
    }

}
